<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>SCRM1100</title>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/resources/antigo/css/style.css" />
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/resources/antigo/css/atributos.css" />
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/resources/antigo/css/botoes.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/antigo/css/bootstrap.min.css">
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/antigo/css/bootstrap-theme.min.css">
<script src="${pageContext.request.contextPath}/resources/antigo/js/jquery.min.js"></script>
<script src="${pageContext.request.contextPath}/resources/antigo/js/bootstrap.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/resources/antigo/js/sispfuncoes.js"></script>
<script type="text/javascript">
	botoes = "1001000010";
	function validateForm() {
            var funcao = $("#funcao");
            if (funcao.val() != 3) {
		var jcontadorj = document.getElementById("jcontadorj").value;
		var chave = document.getElementById("chave").value;
		var dedos11 = document.getElementById("dedos[1][1]").value;
		var dedos21 = document.getElementById("dedos[2][1]").value;
		var dedos31 = document.getElementById("dedos[3][1]").value;
		var dedos41 = document.getElementById("dedos[4][1]").value;
		var dedos51 = document.getElementById("dedos[5][1]").value;
		var dedos12 = document.getElementById("dedos[1][2]").value;
		var dedos22 = document.getElementById("dedos[2][2]").value;
		var dedos32 = document.getElementById("dedos[3][2]").value;
		var dedos42 = document.getElementById("dedos[4][2]").value;
		var dedos52 = document.getElementById("dedos[5][2]").value;

		if (jcontadorj == 0
				& (dedos11.trim() == "" & dedos21.trim() == ""
						& dedos31.trim() == "" & dedos41.trim() == ""
						& dedos51.trim() == "" & dedos12.trim() == ""
						& dedos22.trim() == "" & dedos32.trim() == ""
						& dedos42.trim() == "" & dedos52.trim() == "")
				& chave == "I") {
			if (confirm("POSSUI FORMULA DATILOSCOPICA ? (S/N)") == true) {
				document.getElementById("sn").value = "S";
			} else {
				document.getElementById("sn").value = "N";
			}
		} else {
			document.getElementById("sn").value = "S";
			document.getElementById("jcontadorj").value = 2;
		}
            }
	} else {
            return true;
        }
</script>
</head>
<body onunload="" onkeydown="return voltar('${pageContext.request.contextPath}/antigo/scrp1000/executar', event);">
	<form id="form" action="${scrm1100.navegar}" onsubmit="return validateForm();" method="post">
		<jsp:include page="/resources/antigo/include/header.jsp" />
		<div id="conteudo">
			<div class="content">
				<center>
					<div id="container" style="height: auto; width: 800px; float: inherit;">
						<div id="espaco" style="height: 75%; width: 100%; margin: 0 auto;">
							<br />
							<div class="row">
								<div align="left" class="col-lg-1" style="width: 75px; float: left">
									<label class="control-label">SSP</label>
								</div>
								<div align="left" class="col-lg-8" style="width: 635px; float: left">
									<label class="control-label">- SECRETARIA DE ESTADO DA SEGURANCA PUBLICA / SEATI</label>
								</div>
								<div align="right" style="width: 100px; float: left">
									<label class="control-label">VER.: ${versao}</label>
								</div>
							</div>
							<div class="row">
								<div align="left" class="col-lg-1" style="width: 75px; float: left">
									<label class="control-label">SISP</label>
								</div>
								<div align="left" class="col-lg-8" style="width: 635px; float: left">
									<label class="control-label">- SISTEMA DE INFORMACOES DA SEGURANCA PUBLICA</label>
								</div>
								<div align="right" style="width: 100px; float: left">
									<label class="control-label">${dataCorrente}</label>
								</div>
							</div>
							<div class="row">
								<div align="left" class="col-lg-1" style="width: 75px; float: left">
									<label class="control-label">${scrm1100.jfuncaoj}</label>
								</div>
								<div align="left" class="col-lg-8" style="width: 635px; float: left">
									<label class="control-label">INSTITUTO DE IDENTIFICACAO</label>
								</div>
								<div align="right" style="width: 100px; float: left">
									<label class="control-label">${horaCorrente}</label>
								</div>
							</div>
							<br />
							<div class="row">
								<div align="center" class="col-lg-1" style="width: 800px; float: left">
									<label class="control-label">FICHA INDICE CRIMINAL</label>
								</div>
							</div>
							<input type="hidden" id="jcontadorj" onkeypress="return somenteNumero(event)" name="scrm1100.jcontadorj" readonly class="form-control input-cb" value="${scrm1100.jcontadorj}" maxlength="8" size="8" />
							<div class="row">
								<label class="control-label mensagem" id="mensagem">${scrm1100.mensagem}</label>
							</div>
							<div class="row">
								<div class="row">
									<div align="left" class="col-lg-1" style="width: 70px; float: left">
										<label class="control-label"> </label>
									</div>
									<div align="left" class="col-lg-1" style="width: 160px; float: left">
										<label class="control-label">REGISTRO GERAL:</label>
									</div>
									<div align="left" class="col-lg-1" style="width: 140px; float: left">
										<input type="text" id="jregGeral" onkeypress="return somenteNumero(event)" name="scrm1100.jregGeral" readonly class="form-control input-cb" value="${scrm1100.jregGeral}" maxlength="13" size="13" />
									</div>
									<div align="left" class="col-lg-1" style="width: 85px; float: left">
										<label class="control-label"> </label>
									</div>
									<div align="left" class="col-lg-1" style="width: 350px; float: left">
										<label class="control-label">${scrm1100.jdisprg}</label>
									</div>
								</div>
								<div class="row">
									<div align="left" class="col-lg-1" style="width: 70px; float: left">
										<label class="control-label"> </label>
									</div>
									<div align="left" class="col-lg-1" style="width: 160px; float: left">
										<label class="control-label">NOME: </label>
									</div>
									<div align="left" class="col-lg-1" style="width: 575px; float: left">
										<input type="text" id="jnomecompleto" name="scrm1100.jnomecompleto" class="form-control input-cb" value="${scrm1100.jnomecompleto}" maxlength="60" size="60" />
									</div>
								</div>
								<div class="row">
									<div align="left" class="col-lg-1" style="width: 70px; float: left">
										<label class="control-label"> </label>
									</div>
									<div align="left" class="col-lg-1" style="width: 160px; float: left">
										<label class="control-label">NOME DA MAE: </label>
									</div>
									<div align="left" class="col-lg-1" style="width: 575px; float: left">
										<input type="text" id="jmae" name="scrm1100.jmae" class="form-control input-cb" value="${scrm1100.jmae}" maxlength="60" size="60" />
									</div>
								</div>
								<div class="row">
									<div align="left" class="col-lg-1" style="width: 70px; float: left">
										<label class="control-label"> </label>
									</div>
									<div align="left" class="col-lg-1" style="width: 175px; float: left">
										<label class="control-label">DATA NASCIM.:</label>
									</div>
									<div align="left" style="width: 30px; float: left">
										<input type="text" id="dnas" onkeypress="return somenteNumero(event)" name="scrm1100.dnas" class="form-control input-cb" value="${scrm1100.dnas}" maxlength="2" size="2" />
									</div>
									<div align="center" style="width: 20px; float: left">
										<label class="control-label"> / </label>
									</div>
									<div align="left" style="width: 30px; float: left">
										<input type="text" id="mnas" onkeypress="return somenteNumero(event)" name="scrm1100.mnas" class="form-control input-cb" value="${scrm1100.mnas}" maxlength="2" size="2" />
									</div>
									<div align="center" style="width: 20px; float: left">
										<label class="control-label"> / </label>
									</div>
									<div align="left" style="width: 45px; float: left">
										<input type="text" id="anas" onkeypress="return somenteNumero(event)" name="scrm1100.anas" class="form-control input-cb" value="${scrm1100.anas}" maxlength="4" size="4" />
									</div>
								</div>
								<div class="row">
									<div align="left" class="col-lg-1" style="width: 70px; float: left">
										<label class="control-label"> </label>
									</div>
									<div align="left" class="col-lg-1" class="col-lg-1" style="width: 330px; float: left">
										<label class="control-label">Possui Mandado de Prisao em Aberto(S/N): </label>
									</div>
									<div align="left" style="width: 25px; float: left">
										<input type="text" id="jpossuimandatopaberto" name="scrm1100.jpossuimandatopaberto" class="form-control input-cb" value="${scrm1100.jpossuimandatopaberto}" maxlength="1" size="1" />
									</div>
								</div>
								<input type="hidden" id="chave" name="scrm1100.chave" class="form-control input-cb" readonly value="${scrm1100.chave}" maxlength="1" size="1" />
								<br />
								<div class="row">
									<div align="center" class="col-lg-1" style="width: 800px; float: left">
										<label class="control-label">FORMULA DATILOSCOPICA</label>
									</div>
								</div>
								<br />
								<div class="row">
									<div align="left" class="col-lg-2"
										style="width: 65px; float: left">
										<label class="control-label">D |</label>
									</div>
									<div align="left" class="col-lg-2"
										style="width: 100px; float: left">
										<input type="text" id="dedos[1][1]"
											name="scrm1100.dedos[1][1]" class="form-control input-cb"
											value="${scrm1100.dedos[1][1]}" maxlength="7" size="7" />
									</div>
									<div align="left" class="col-lg-2"
										style="width: 100px; float: left">
										<input type="text" id="dedos[2][1]"
											name="scrm1100.dedos[2][1]" class="form-control input-cb"
											value="${scrm1100.dedos[2][1]}" maxlength="7" size="7" />
									</div>
									<div align="left" class="col-lg-2"
										style="width: 100px; float: left">
										<input type="text" id="dedos[3][1]"
											name="scrm1100.dedos[3][1]" class="form-control input-cb"
											value="${scrm1100.dedos[3][1]}" maxlength="7" size="7" />
									</div>
									<div align="left" class="col-lg-2"
										style="width: 100px; float: left">
										<input type="text" id="dedos[4][1]"
											name="scrm1100.dedos[4][1]" class="form-control input-cb"
											value="${scrm1100.dedos[4][1]}" maxlength="7" size="7" />
									</div>
									<div align="left" class="col-lg-2"
										style="width: 100px; float: left">
										<input type="text" id="dedos[5][1]"
											name="scrm1100.dedos[5][1]" class="form-control input-cb"
											value="${scrm1100.dedos[5][1]}" maxlength="7" size="7" />
									</div>
								</div>
								<div class="row">
									<div align="left" class="col-lg-2"
										style="width: 65px; float: left">
										<label class="control-label"> </label>
									</div>
									<div align="left" class="col-lg-2"
										style="width: 100px; float: left">
										<label class="control-label">POLEGARES</label>
									</div>
									<div align="left" class="col-lg-2"
										style="width: 100px; float: left">
										<label class="control-label">INDICADORES</label>
									</div>
									<div align="left" class="col-lg-2"
										style="width: 100px; float: left">
										<label class="control-label">MEDIOS</label>
									</div>
									<div align="left" class="col-lg-2"
										style="width: 100px; float: left">
										<label class="control-label">ANELARES</label>
									</div>
									<div align="left" class="col-lg-2"
										style="width: 100px; float: left">
										<label class="control-label">MINIMOS</label>
									</div>
								</div>
								<div class="row">
									<div align="left" class="col-lg-2"
										style="width: 65px; float: left">
										<label class="control-label">E |</label>
									</div>
									<div align="left" class="col-lg-2"
										style="width: 100px; float: left">
										<input type="text" id="dedos[1][2]"
											name="scrm1100.dedos[1][2]" class="form-control input-cb"
											value="${scrm1100.dedos[1][2]}" maxlength="7" size="7" />
									</div>
									<div align="left" class="col-lg-2"
										style="width: 100px; float: left">
										<input type="text" id="dedos[2][2]"
											name="scrm1100.dedos[2][2]" class="form-control input-cb"
											value="${scrm1100.dedos[2][2]}" maxlength="7" size="7" />
									</div>
									<div align="left" class="col-lg-2"
										style="width: 100px; float: left">
										<input type="text" id="dedos[3][2]"
											name="scrm1100.dedos[3][2]" class="form-control input-cb"
											value="${scrm1100.dedos[3][2]}" maxlength="7" size="7" />
									</div>
									<div align="left" class="col-lg-2"
										style="width: 100px; float: left">
										<input type="text" id="dedos[4][2]"
											name="scrm1100.dedos[4][2]" class="form-control input-cb"
											value="${scrm1100.dedos[4][2]}" maxlength="7" size="7" />
									</div>
									<div align="left" class="col-lg-2"
										style="width: 100px; float: left">
										<input type="text" id="dedos[5][2]"
											name="scrm1100.dedos[5][2]" class="form-control input-cb"
											value="${scrm1100.dedos[5][2]}" maxlength="7" size="7" />
									</div>
								</div>
								<div class="row" align="right" style="width: 800px">
									<input type="submit" class="btn btn-default" value="Processar"  />
								</div>
								<label class="corpo_c">______________________________________________________________________________________________________________________________________</label>
								<div class="row">
									<div align="center" class="col-lg-1" style="width: 200px; float: left">
										<label class="control-label">ESC p/ Voltar</label>
									</div>
									<div align="center" class="col-lg-1" style="width: 430px; float: left">
										<label class="control-label">${empresa} - ${programa}</label>
									</div>
									<div align="center" class="col-lg-1" style="width: 200px; float: right">
										<label class="control-label">CTRL + Z p/ Sair</label>
									</div>
								</div>
								<input type="hidden" id="funcao" name="scrm1100.funcao" value="${ scrm1100.funcao }" maxlength="1" size="1" />
								<input type="hidden" id="campofocus" name="scrm1100.campofocus" value="${ scrm1100.campofocus }" maxlength="30" size="30" />
								<input type="hidden" id="navegar" name="scrm1100.navegar" value="${ scrm1100.navegar }" />
								<input type="hidden" id="sn" name="scrm1100.sn" value="${ scrm1100.sn }" maxlength="1" size="1" />
							</div>
						</div>
					</div>
				</center>
			</div>
		</div>
		<jsp:include page="/resources/antigo/include/footer.jsp" />
	</form>
</body>
</html>
